package org.luxor.commons.selenium.component;

/**
 * 执行状态
 *
 * @param
 * @author Mr.yan @date 2022/10/23
 */
public enum ExecState {
    INITIALIZE(0, "初始化"),
    RUNNING(1, "执行中.."),
    COMPLETE(2, "执行完成"),
    FAILURE(3, "执行失败"),
    SUSPEND(4, "暂停执行");

    private final int code;
    private final String name;

    ExecState(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "ExecState{code=" + code + ", name='" + name + "'}";
    }
}
